package com.lyz.dataStructure.考研上机编程题;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 22:56
 * @Description:
 **/


import java.util.Scanner;


/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/9/17 22:56
 *@Description:
 **/
public class 球的半径和体积 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s =sc.nextLine();
        String[] st =s.split(" ");
        int[] arr = new int[st.length];
        for(int i =0;i<arr.length;i++){
            arr[i] = Integer.parseInt(st[i]);
        }
        returnColl(arr);
    }
    public static void returnColl(int[] arr){

        double r = Math.sqrt((arr[0]-arr[3])*(arr[0]-arr[3])+(arr[1]-arr[4])*(arr[1]-arr[4])+(arr[2]-arr[5])*(arr[2]-arr[5]));
        double v = (4.0/3.0)*Math.acos(-1)*r*r*r;
        System.out.printf("%.3f %.3f",r,v);
    }
}
